﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="API_CIC.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 326px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <br />
<br />

    <table style="width:40%;">
        <tr>
            <td align="right" class="style1">
                <asp:Label ID="Label1" runat="server" Text="Nombre de usuario:" 
                    ForeColor="White"></asp:Label>
<asp:TextBox ID="txtUsuario" runat="server" ValidationGroup="1" Width="126px"></asp:TextBox>

<br />
<asp:Label ID="Label2" runat="server" Text="Contraseña:" ForeColor="White"></asp:Label>
<asp:TextBox ID="txtContrasena" runat="server" style="margin-left: 0px" 
    TextMode="Password" ValidationGroup="1" Width="126px"></asp:TextBox>
</td>
      <td valign="top">
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    ErrorMessage="Campo Requerido" ValidationGroup="1" 
    ControlToValidate="txtUsuario" ForeColor="Red"></asp:RequiredFieldValidator>
    <br /><br />
      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
    ErrorMessage="Campo Requerido" ValidationGroup="1" 
    ControlToValidate="txtContrasena" ForeColor="Red"></asp:RequiredFieldValidator>
      </td>
        </tr>
      <tr>
      <td align="right" class="style1">
          <asp:Label ID="lblError" runat="server" ForeColor="Red" 
              Text="El usuario y/o la contraseña no son correctos" Visible="False"></asp:Label>
      <asp:Button ID="btnLogin" runat="server" Text="Login" ValidationGroup="1" 
              onclick="btnLogin_Click" />
      </td>
      </tr>
    </table>
    
<br />
</asp:Content>
